package com.example.personalaccount.entity;

import jakarta.persistence.Id;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.List;
import java.util.Map;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Document(collection = "Account")
public class Account {
    @Id
    private String id;
    private long userId;
    private List<String> expends ;  // clauseId
    private Map<String,String> accounts;   // 支付账号
}
